﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;

namespace Netfraction.RemoteMachine
{
    public abstract class Node
    {
        protected Connection mConnection;

        protected Node()
        {
            this.Features = new Dictionary<string, Netfraction.Network.Protocol.ProtocolFeature>();
            this.Identity = new Identity();
            this.Identity.NodeType = IdentityNodeTypes.NormalUser;
        }

        public abstract Connection Connection { get; set; }

        public string SessionId { get; set; }
        public virtual System.Security.Cryptography.HashAlgorithm SessionHashAlgorithm { get; set; }
        public Identity Identity { get; set; }
        public Dictionary<string, Network.Protocol.ProtocolFeature> Features { get; set; }
    }
}
